﻿using AutoMapper;
using King.Box.Models.Db.Sys;
using King.Box.Models.View.Sys;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace King.Box.WebApi.AppStart
{
    public class StartupAutoMapper
    {
        public static void Initialize()
        {
            Mapper.Initialize(x =>
              {
                  x.CreateMap<Sys_User, Sys_UserData>();
                  x.CreateMap<Sys_Menu, Sys_MenuData>();
                  x.CreateMap<Sys_Permission, Sys_PermissionData>();
                  x.CreateMap<Sys_User_Role, Sys_User_RoleData>();
              });
        }
    }
}
